package org.mspring.platform.support;

/**
 *
 * @since 2014-03-21 18:43:22
 * @author Gao Youbo
 */
public class BeanFactory {

    public static <T> T getBean(Class<T> requiredType) {
        return ContextManager.getApplicationContext().getBean(requiredType);
    }

    public static Object getBean(String beanName) {
        return ContextManager.getApplicationContext().getBean(beanName);
    }
}
